package com.ck.constant;

/**
 * 缓存常量类
 */
public class CacheConstant {
    /**
     * 缓存名-终端设置信息
     */
    public static final String CACHE_NAME_DEVICE_SETTING = "CK_DEVICE_SETTING_CACHE";
    /**
     * 缓存名-轮询配置信息
     */
    public static final String CACHE_NAME_POLL_CONFIG = "CK_POLLCONFIG_CACHE";
    /**
     * 缓存名-设备上报信息时商家前缀
     */
    public static final String CACHE_NAME_DEVICE_COMPANY_PREFIX = "CK_COMPANY_";

    /**
     * 缓存名-登录用户token
     */
    public static final String CK_TOKEN_CACHE_NAME = "TOKEN";
    /**
     * 缓存名-登录用户名
     */
    public static final String CK_TOKEN_USER_MAPPING = "TOKEN_USER_MAPPING";

    /**
     * 缓存过期时间30天（秒）
     */
    public static final int CACHE_EXPIRE_SECONDS = 30 * 24 * 60 * 60;

    /** 缓存名-设备关键信息 */
    public static final String CACHE_NAME_DEVICE_KEY_MSG = "CK_DEVICE_KEY_MSG";
}
